package org.jradweb.jradtest.service.impl;

import java.util.List;

import org.jradweb.jradtest.model.Book;
import org.jradweb.jradtest.service.AbstractBookService;
 
/**
 * Service Implement Class .
 * 
 * Created On Fri Mar 28 15:37:56 CST 2008
 * @author Code Generator
 * @version $Id: BookServiceImpl.java 93 2008-04-10 09:36:30Z wagzhi $
 */
public class BookServiceImpl extends AbstractBookService{
		public Book getBook(Integer id){
			return this.bookDao.findById(id);
		}
		public List<Book> getAll(){
			return this.bookDao.getAll();
		}
		public Book update(Book book) {		
			return  this.bookDao.merge(book);
		}
		public void save(Book book){
			this.bookDao.persist(book);
		}
		public void delete(Book book){
			this.bookDao.delete(book);
		}
}